﻿//
// *************************************************************************************
// WP-Framework
//
// Developed by 
// Lukas Kretschmar (lkretschmar.dev@bluewin.ch)
//
// Switzerland, Copyright (c) 2013 lkretschmar
// This content is released under the MIT License (http://opensource.org/licenses/MIT).
//     
// *************************************************************************************
//
//



namespace KretschIT.WP_Fx.EasyMoq.Conditions
{
    internal class Exactly : ICondition
    {
        private int count;

        #region Ctor

        public Exactly(int count)
        {
            this.count = count;
        }

        #endregion

        public bool CanBeVerifiedWith(int count)
        {
            return count == this.count;
        }

        public string GetFailureMessage(int count)
        {
            return string.Format("Expected exactly {0} call(s) - had {1}.", this.count, count);
        }
    }
}
